package com.ctgu.springshiro.service.impl;

import com.ctgu.springshiro.dao.RoleDao;
import com.ctgu.springshiro.entity.Role;
import com.ctgu.springshiro.service.IRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Set;

@Service
public class RoleService implements IRoleService {

    @Autowired
    private RoleDao roleDao;

    @Override
    public Set<Role> getRolesByUserId(int userId) {

        return roleDao.getRolesByUserId(userId);
    }
}
